int maxArea(int* height, int heightSize)
{
    int left = 0;
    int right = heightSize-1;
    int ret = 0;
    int ans = 0;
    while(left<right)
    {
      ret=fmin(height[left],height[right])*(right-left);
      ans=fmax(ret,ans);
      if(height[left]<height[right])
      {
        left++;
      }
      else
      {
        right--;
      }
    }
    return ans;
}